package analysis.bean.value;

import common.KPIType;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

public class TimeOutputValue extends StatsOutputValue {
    public String uuid;
    public long time;


    @Override
    public void write(DataOutput dataOutput) throws IOException {
        dataOutput.writeUTF(this.uuid);
        dataOutput.writeLong(this.time);
    }

    @Override
    public void readFields(DataInput dataInput) throws IOException {
        this.uuid = dataInput.readUTF();
        this.time = dataInput.readLong();
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String id) {
        this.uuid = id;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }


    @Override
    public KPIType getKPI() {
        return null;
    }
}
